package com.holly.unit.deform.modular.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 类描述:
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/11 14:42
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DesignFormTempletQueryRequest extends BaseRequest {

    /***
     * 主键id
     */
    @NotNull(message = "表单模板id不能为空", groups = {DesignFormTempletQueryRequest.queryById.class})
    @ChineseDescription("表单模板id")
    private String id;

    /***
     * 表单编码
     */
    @NotNull(message = "表单模板编码不能为空", groups = {DesignFormTempletQueryRequest.queryByCode.class})
    @ChineseDescription("表单模板编码")
    private String code;

    /**
     * 参数校验分组：查询所有
     */
    public @interface queryByCode {
    }

    /**
     * 参数校验分组：查询所有
     */
    public @interface queryById {
    }

}
